package com.desire.common;

import lombok.Getter;

@Getter
public enum ResultEnum {
    UNKONW_ERROR(1001, "未知错误"),
    INPUT_ERROR(1002,"账号密码错误"),
    ADD_USER_ERROR(1003,"添加用户失败"),
    USER_NOT_FOND(1004,"用户不存在"),
    SUCCESS(200, "成功"),
    UPDATE_SUCCESS(200, "修改用户信息成功"),
    UPDATE_ERROR(1002, "修改用户信息失败"),
    DELETE_SUCCESS(200,"删除成功"),
    DELETE_ERROR(1002,"删除失败")

    ;

    private final Integer code;

    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
